<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>vue学习</title>
		<style>
			.active{
				color: red;
			}
		</style>
	</head>
	<body>
		<div id="app">
			<h2 class="active">{{ message }}</h2>
			<h2 class="hh" :class="{'active': isActive}">{{ message }}</h2>
			<div v-bind:style="{color: activeColor, fontSize: fontSize + 'px'}">{{ message }}</div>
			
		</div>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			let app = new Vue({
				el: '#app',
				data: {
					message: 'Hello Vue',
					isActive: true,
					activeColor: 'green',
					fontSize: 15,
				}
			})
		</script>

	</body>
</html>
